package com.itheima.pinda.DTO.entity.pojo.user;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 司机表
 * </p>
 *
 * @author xy
 * @since 2021-11-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class PdTruckDriver extends Model<PdTruckDriver> {

    private static final long serialVersionUID = 1L;

    private String id;

    /**
     * 用户id，来自用户表
     */
    private String userId;

    /**
     * 所属车队id
     */
    private String fleetId;

    /**
     * 年龄
     */
    private Integer age;

    /**
     * 图片
     */
    private String picture;

    /**
     * 驾龄
     */
    private Integer drivingAge;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
